package com.kaiwukj.android.ufamily.mvp.http.entity.event;

import com.google.gson.annotations.SerializedName;
import com.kaiwukj.android.ufamily.app.constant.Constant;
import com.kaiwukj.android.ufamily.mvp.http.entity.base.BaseBean;
import com.tencent.mm.opensdk.modelpay.PayReq;


public class PayInfo extends BaseBean {
    /**
     * info : body="商品消费"&_input_charset="utf-8"&subject="商品消费"&total_fee="0.01"&notify_url="null/handleAlipay"&service="mobile.securitypay.pay"&partner="2088721521689788"&seller_id="szuuh@qq.com"&out_trade_no="799624118398"&payment_type="1"&sign="iBxInstoGDOjwNKayranqzSIsCsOZyoNLS%2ByGdnRt0uR1cUu%2BC5eKKS2T1ctvklEWrxxPyfXmFl93uHOtMrSOVdlsLnNGfaGzJWzQB4tDcxJOH15Sd8f4LmauMVnrdomIpG3Ode99OCuEh319US2tzqbJIz238Mwn4KHL9RjsY0%3D"&sign_type="RSA"
     */

    private String info;

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    private String appid;
    private String noncestr;
    @SerializedName("package")
    private String _package;
    private String partnerid;
    private String prepayid;
    private String paySign;
    private String signType;
    private String timestamp;

    private String tradeNo;

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getNoncestr() {
        return noncestr;
    }

    public void setNoncestr(String noncestr) {
        this.noncestr = noncestr;
    }

    public String get_package() {
        return _package;
    }

    public void set_package(String _package) {
        this._package = _package;
    }

    public String getPartnerid() {
        return partnerid;
    }

    public void setPartnerid(String partnerid) {
        this.partnerid = partnerid;
    }

    public String getPrepayid() {
        return prepayid;
    }

    public void setPrepayid(String prepayid) {
        this.prepayid = prepayid;
    }

    public String getPaySign() {
        return paySign;
    }

    public void setPaySign(String paySign) {
        this.paySign = paySign;
    }

    public String getSignType() {
        return signType;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public PayReq getPayReq() {
        PayReq payReq = new PayReq();
        payReq.appId = Constant.WX_APP_ID;
        payReq.nonceStr = getNoncestr();
        payReq.partnerId = getPartnerid();
        payReq.prepayId = getPrepayid();
        payReq.sign = getPaySign();
//            payReq.packageValue = get_package();
        payReq.packageValue = "Sign=WXPay";
        payReq.timeStamp = getTimestamp();
        payReq.signType = getSignType();
        return payReq;
    }
}